home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 1.iso / icons / animator.zip / MAKEFILE < prev    next >
Text File  |  1993-02-18  |  2KB  |  94 lines

  1. ##### Module Macro #####
  2. NAME    = animator
  3. SRCS    = main.c frame.c about.c child.c timer.c fileio.c \
  4.           statbar.c externs.c settings.c showtask.c
  5. OBJS    =
  6. MODEL   = M
  7. ##### C7/Display Compatibility Test #####
  8. C7  =  1
  9.  
  10. ##### Library Macro #####
  11. !if $(C7)
  12. LIBS    = libw $(MODEL)libcew commdlg oldnames toolhelp shell
  13. !else
  14. LIBS    = libw $(MODEL)libcew commdlg toolhelp shell
  15. !endif
  16. MOD = -A$(MODEL)
  17.  
  18. ##### Include Macro #####
  19. INCLS   = $(NAME).h rc.h
  20.  
  21. ##### Resource Macro #####
  22. RCFILES = animator.ico child.ico
  23.  
  24. ##### DEBUG Defined #####
  25. DEBUG   = 0
  26.  
  27. ##### Build Option Macros #####
  28. !if $(DEBUG)
  29. DDEF    = -DDEBUG
  30. CLOPT   = -Zid -Od
  31. MOPT    = -Zi
  32. LOPT    = /CO /LI /MAP
  33. !else
  34. DDEF    =
  35. CLOPT   = -Os
  36. LOPT    =
  37. !endif
  38.  
  39. ##### General Macros #####
  40. DEF =
  41.  
  42. ##### Tool Macros #####
  43. ASM = masm -Mx $(MOPT) $(DDEF) $(DEF)
  44. CC  = cl -nologo -c $(MOD) -G2sw -Zp -W3 $(CLOPT) $(DDEF) $(DEF)
  45. LINK    = link /NOD /NOE $(LOPT)
  46. RC  = rc $(DDEF) $(DEF)
  47. HC  = hc
  48.  
  49. ##### Inference Rules #####
  50. .c.obj:
  51.     $(CC) -NT _$* $*.c
  52.  
  53. .asm.obj:
  54.     $(ASM) $*.asm;
  55.  
  56. .rc.res:
  57.     $(RC) -r $*.rc
  58.  
  59. ##### Main (default) Target #####
  60. goal: $(NAME).exe
  61.  
  62. ##### Dependents For Goal and Command Line #####
  63. #main.obj: main.c $(INCLS)
  64. #    $(CC) -NT _TEXT $*.c
  65.  
  66. ##### Dependents For Goal and Command Line #####
  67. $(NAME).exe: $(SRCS:.c=.obj) $(NAME).def $(NAME).res
  68.     $(LINK) @<<
  69.     $(SRCS:.c=.obj) $(OBJS),
  70.     $(NAME).exe,
  71.     $(NAME).map,
  72.     $(LIBS),
  73.     $(NAME).def
  74. <<
  75.     $(RC) -T $(NAME).res
  76. !if $(DEBUG)
  77. !if !$(C7)
  78.     cvpack -p $(NAME).exe
  79. !endif
  80.     mapsym $(NAME).map
  81. !endif
  82.  
  83. ##### Dependents #####
  84. $(SRCS:.c=.obj): $(INCLS)
  85. $(NAME).res: $(RCFILES) $(INCLS)
  86.  
  87. ##### Clean Directory #####
  88. clean:
  89.     -del *.obj
  90.     -del *.res
  91.     -del *.exe
  92.     -del *.map
  93.     -del *.sym
  94.